import * as Icon from '@ant-design/icons';
import React from "react";

function AntdIcon(iconName:string,style={}) {
  return Icon[iconName]?React.createElement(
    Icon[iconName],
    {
      style:style
    }
  ):null
}

export default AntdIcon;
